<template>
  <div>
      <input type="text" @keyup.enter="fn">
      <input type="text" @keyup.esc="fn1">

  </div>
</template>

<script>
export default {
methods: {
    fn(){
        console.log("fn");
    },
fn1(){
    console.log("fn1");
}
}
}
</script>

<style>

</style>